from django.contrib.auth.models import User

from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext

def dashboard(request):
    return render_to_response('dashboard/index.html',
                              {},
                              context_instance=RequestContext(request))

def user_profile(request, username):
    user = get_object_or_404(User, username=username)
    return render_to_response('dashboard/user_profile.html',
                              {'user': user},
                              context_instance=RequestContext(request))